import {Injectable} from '@angular/core';
import {Headers, RequestOptions} from '@angular/http';
import {adSystemApiUrl} from '../../../../config/api';
import {HttpService} from '../../../lib/service/http.service';

@Injectable()

export class FreightAddService {

  	constructor(private httpService: HttpService) {

  	}
  	getProvinceList() {
	    const url = `${adSystemApiUrl}/v1/member/comm/address/province_list`;
	    return this.httpService.httpGetAuth(url).map(rs => rs);
	}

	  getFreightList(page=1,pageSize=5) {
  	  const url = `${adSystemApiUrl}/v1/member/express_template/list?page=${page}&pageSize=${pageSize}`;
  	  return this.httpService.httpGetAuth(url).map(rs => rs);
    }

}
